package com.zjl.spring.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zjl.spring.enums.MoudleEnums;

import java.time.LocalDateTime;

@TableName("action")
public class ActionDO {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 动作编码
     */
    private String code;

    /**
     * 动作名称
     */
    private String name;

    /**
     * 模块
     */
    private MoudleEnums moudle;

    /**
     * 描述
     */
    private String description;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String creator;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createDt;

    /**
     * 逻辑删除时间
     */
    private LocalDateTime deleteDt;

    /**
     * 创建人ID
     */
    @TableField(fill = FieldFill.INSERT)
    private String creatorId;

    /**
     * 最后修改人名称
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String lastUpdator;

    /**
     * 最后修改人ID
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String lastUpdatorId;

    /**
     * 最后修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastUpdateDt;

    /**
     * 逻辑删除
     */
    private Integer deleted;

    public Long getId() {
        return id;
    }

    public ActionDO setId(Long id) {
        this.id = id;
        return this;
    }

    public String getCode() {
        return code;
    }

    public ActionDO setCode(String code) {
        this.code = code;
        return this;
    }

    public String getName() {
        return name;
    }

    public ActionDO setName(String name) {
        this.name = name;
        return this;
    }

    public MoudleEnums getMoudle() {
        return moudle;
    }

    public ActionDO setMoudle(MoudleEnums moudle) {
        this.moudle = moudle;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public ActionDO setDescription(String description) {
        this.description = description;
        return this;
    }

    public String getCreator() {
        return creator;
    }

    public ActionDO setCreator(String creator) {
        this.creator = creator;
        return this;
    }

    public LocalDateTime getCreateDt() {
        return createDt;
    }

    public ActionDO setCreateDt(LocalDateTime createDt) {
        this.createDt = createDt;
        return this;
    }

    public LocalDateTime getDeleteDt() {
        return deleteDt;
    }

    public ActionDO setDeleteDt(LocalDateTime deleteDt) {
        this.deleteDt = deleteDt;
        return this;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public ActionDO setCreatorId(String creatorId) {
        this.creatorId = creatorId;
        return this;
    }

    public String getLastUpdator() {
        return lastUpdator;
    }

    public ActionDO setLastUpdator(String lastUpdator) {
        this.lastUpdator = lastUpdator;
        return this;
    }

    public String getLastUpdatorId() {
        return lastUpdatorId;
    }

    public ActionDO setLastUpdatorId(String lastUpdatorId) {
        this.lastUpdatorId = lastUpdatorId;
        return this;
    }

    public LocalDateTime getLastUpdateDt() {
        return lastUpdateDt;
    }

    public void setLastUpdateDt(LocalDateTime lastUpdateDt) {
        this.lastUpdateDt = lastUpdateDt;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}